
<div *ngIf="subject">
    <h2><span jhiTranslate="gbSubjectApp.subject.detail.title">Subject</span></h2>
    <hr>
    <jhi-alert-error></jhi-alert-error>
    <dl class="row-md jh-entity-details">
        <dt><span jhiTranslate="gbSubjectApp.subject.name">Name</span></dt>
        <dd>
            <span>{{subject.name}}</span>
        </dd>
        <dt><span jhiTranslate="gbSubjectApp.subject.code">Code</span></dt>
        <dd>
            <span>{{subject.code}}</span>
        </dd>
        <dt><span jhiTranslate="gbSubjectApp.subject.studentSum">Student Sum</span></dt>
        <dd>
            <span>{{subject.studentSum}}</span>
        </dd>
        <dt><span jhiTranslate="gbSubjectApp.subject.subjectClazz">Subject Clazz</span></dt>
        <dd>
            <div *ngIf="subject.subjectClazzId">
                <a [routerLink]="['/subject-clazz-my-suffix', subject.subjectClazzId]">{{subject.subjectClazzName}}</a>
            </div>
        </dd>
        <dt><span jhiTranslate="gbSubjectApp.subject.college">College</span></dt>
        <dd>
            <span *ngFor="let college of subject.colleges; let last = last">
                <a [routerLink]="['/college-my-suffix', college?.id ]">{{college.name}}</a>{{last ? '' : ', '}}
            </span>
        </dd>
    </dl>

    <button type="submit"
            (click)="previousState()"
            class="btn btn-info">
        <span class="fa fa-arrow-left"></span>&nbsp;<span jhiTranslate="entity.action.back"> Back</span>
    </button>

    <button type="button"
            [routerLink]="['/', { outlets: { popup: 'subject-my-suffix/'+ subject.id + '/edit'} }]"
            replaceUrl="true"
            queryParamsHandling="merge"
            class="btn btn-primary">
        <span class="fa fa-pencil"></span>&nbsp;<span jhiTranslate="entity.action.edit"> Edit</span>
    </button>
</div>
